const mongoose = require("mongoose");

const schema = new mongoose.Schema({
  title: {
    type: "String",
    require: true,
  },
  author: {
    type: "String",
    default: "老王",
    require: true,
  },
  des: {
    type: "String",
    default: "老王是如何练成的",
  },
});

const Article = mongoose.model("articles", schema);
module.exports = Article;
